package org.qqcui.designpattern.patterns.state;

/**
 * 奖品抽完，不可抽奖状态
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/5/7 14:19
 **/
public class DispenseOutState extends State {

    private RaffleActivity activity;

    public DispenseOutState(RaffleActivity activity) {
        this.activity = activity;
    }

    @Override
    void deduceScore() {
        System.out.println("奖品发完，期待下次活动吧");
    }

    @Override
    boolean raffle() {
        System.out.println("奖品发完，期待下次活动吧");
        return false;
    }

    @Override
    void dispensePrize() {
        System.out.println("奖品发完，期待下次活动吧");
    }
}
